package d3_charset;

import java.io.*;

public class t6resource {
    public static void main(String[] args) {
        try (            InputStream isr = new FileInputStream("D:\\wuyong\\AA1BAd5P.jfif");
                         OutputStream osw = new FileOutputStream("D:\\wuyong\\bbb\\AA1BAd5P.jfif");
                         ){

            //2.创建字节数组
            byte[] buffer = new byte[1024];
            int len;
            while ((len = isr.read(buffer)) > 0) {
                osw.write(buffer, 0, len);
            }


            System.out.println("finish");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
